const { http } = require("@/utils")
const { makeAutoObservable } = require("mobx")

class ArticleStore {
    channel = []
    constructor() {
        makeAutoObservable(this)
    }

    getChannel = async () => {
        const res = await http.get('channels')
        this.channel = res.data.channels
    }
}

export default ArticleStore